/*
 * @Description: 
 * @Author: 于子续
 * @Date: 2024-09-06 08:35:03
 * @LastEditors: 于子续
 * @LastEditTime: 2024-09-06 10:07:06
 */
package day10;

public class Student {
    private String name;
    private String id;
    private int age;
    private char gender;

    public Student() {
    }

    public Student(String name, String id, int age, char gender) {
        this.name = name;
        this.id = id;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGender(char gender) {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public void setHello(){
        System.out.println("Hello");
    }

    public void setName(){
        System.out.println("我的名字是："+name);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }
}
